import request from '@/router/axios';


export const getList = (params) => {
    return request({
      url: '/api/user-api/mx-user-group/page',
      method: 'get',
      params: {
        ...params,
      }
    })
  }
  
  export const insertGroup = (data) => {
    return request({
      url: '/api/user-api/mx-user-group/insert',
      method: 'post',
      data: {...data}
    })
  }

  export const updateGroup = (data) => {
    return request({
      url: '/api/user-api/mx-user-group/update',
      method: 'post',
      data: {...data}
    })
  }

  export const detail = (params) => {
    return request({
      url: '/api/user-api/mx-user-group/detail',
      method: 'get',
      params: {...params}
    })
  }
  
  export const del = (params) => {
    return request({
      url: '/api/user-api/mx-user-group/delete',
      method: 'post',
      params
    })
  }